<template>
  <div class="row justify-content-center">
    <div class="col-8">
      <div v-if="roomRentBasic">
        <h2 class="jh-entity-heading" data-cy="roomRentBasicDetailsHeading"><span>RoomRentBasic</span> {{ roomRentBasic.id }}</h2>
        <dl class="row jh-entity-details">
          <dt>
            <span>Care</span>
          </dt>
          <dd>
            <span>{{ roomRentBasic.care }}</span>
          </dd>
          <dt>
            <span>Parking</span>
          </dt>
          <dd>
            <span>{{ roomRentBasic.parking }}</span>
          </dd>
          <dt>
            <span>Electricity</span>
          </dt>
          <dd>
            <span>{{ roomRentBasic.electricity }}</span>
          </dd>
          <dt>
            <span>Lease</span>
          </dt>
          <dd>
            <span>{{ roomRentBasic.lease }}</span>
          </dd>
          <dt>
            <span>Occupancy</span>
          </dt>
          <dd>
            <span>{{ roomRentBasic.occupancy }}</span>
          </dd>
          <dt>
            <span>Water</span>
          </dt>
          <dd>
            <span>{{ roomRentBasic.water }}</span>
          </dd>
          <dt>
            <span>Gas</span>
          </dt>
          <dd>
            <span>{{ roomRentBasic.gas }}</span>
          </dd>
          <dt>
            <span>Created By</span>
          </dt>
          <dd>
            <span>{{ roomRentBasic.createdBy }}</span>
          </dd>
          <dt>
            <span>Created Date</span>
          </dt>
          <dd>
            <span>{{ roomRentBasic.createdDate | formatDate }}</span>
          </dd>
          <dt>
            <span>Last Modified By</span>
          </dt>
          <dd>
            <span>{{ roomRentBasic.lastModifiedBy }}</span>
          </dd>
          <dt>
            <span>Last Modified Date</span>
          </dt>
          <dd>
            <span>{{ roomRentBasic.lastModifiedDate | formatDate }}</span>
          </dd>
        </dl>
        <button type="submit" v-on:click.prevent="previousState()" class="btn btn-info" data-cy="entityDetailsBackButton">
          <font-awesome-icon icon="arrow-left"></font-awesome-icon>&nbsp;<span> Back</span>
        </button>
        <router-link
          v-if="roomRentBasic.id"
          :to="{ name: 'RoomRentBasicEdit', params: { roomRentBasicId: roomRentBasic.id } }"
          custom
          v-slot="{ navigate }"
        >
          <button @click="navigate" class="btn btn-primary">
            <font-awesome-icon icon="pencil-alt"></font-awesome-icon>&nbsp;<span> Edit</span>
          </button>
        </router-link>
      </div>
    </div>
  </div>
</template>

<script lang="ts" src="./room-rent-basic-details.component.ts"></script>
